import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;


public class RectangleExample extends MIDlet
{
private Display display; 
private MyCanvas canvas; ;
public RectangleExample ()
{
display = Display.getDisplay(this);
canvas = new MyCanvas(this);
}
protected void startApp()
{
display.setCurrent( canvas );
}
protected void pauseApp()
{ 
}
protected void destroyApp( boolean unconditional )
{ 
}
public void exitMIDlet()
{
System.gc();
destroyApp(false);
notifyDestroyed();
}}


